<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="Microsoft.Web.Mvc" %>

<asp:Content ID="Content2" ContentPlaceHolderID="HeaderContent" runat="server">
    <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"></script>
    <script type="text/javascript">
        function begin() {
            $("#messages").slideUp("normal", function() { $("#loadingimage").show(); });
        };

        function complete() {
            $("#loadingimage").hide();
            $("#messages").slideDown("normal");
        };
    </script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-main">
        <h2>Borrar Mensajes</h2>
        <div>
            <% using (Ajax.BeginForm("DeleteMessages", "Admin", new AjaxOptions { InsertionMode = InsertionMode.Replace, HttpMethod = "POST", OnBegin = "begin",OnComplete = "complete", UpdateTargetId = "messages"})){ %>
                <label for="id" style="display:inline;">Filtrar por emisor: </label>
                <%= Html.TextBox("id", "", new { size = 30, style = "display:inline;"}) %>
                <%= Html.SubmitButton("submitbutton", "Filtrar", new { style = "display:inline;" })%>
            <%} %>
            <img id="loadingimage" width="24px" src="<%= Url.Content("~/Content/images/LCA_logo_rotor.gif") %>" style="display:none;" />
            <br />
        </div>
        <div id="messages">
            <% Html.RenderPartial("ShowMessagesToRemove", Model); %>
        </div>
    </div>
    <div class="content-right">
        <% Html.RenderPartial("AdminMenu"); %>
    </div>
</asp:Content>


